package com.example.service;

import com.example.entity.Goods;
import com.example.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;


public interface TeacherService {
    User getTeacherByAuthor(int gid);
    User getTeacherByUid(int uid);
    //条件查询
    List<Goods> getGoodsByTeacherName(String name);
    Goods getGoodsById(Integer gid);
    //遍历
    List<Goods> getAllGoods();
    //增加
    boolean addGoods(Goods goods);
    //修改
    boolean updateGoods(Goods goods);
    //删除
    boolean deleteGoods(Integer gid);

    //修改个人信息

}
